<html>

<head>

<?php

include "../includes/constants.php";
include "../includes/functions.php";
@include "../includes/profile.php";

?>

<title>Pet Info</title>

<script src="../includes/functions.js"></script>

<link rel="stylesheet" type="text/css" href="inventory.css">

</head>

<body>

<table border="1">
	<tr>
		<td colspan="2" title="<?php echo $ExtProfile[pet_name]; ?> (???%)">
			<?php echo $ExtProfile[pet_name]; ?><br>
			<center><?php echo $ExtProfile[pet_hp]; ?> HP</center>
		</td>
		<td rowspan="5" valign="top">
<?php
foreach ($ExtProfile[pet_buffs] as $key => $value) {
	if ($value[spellid] != 65535 && $value[spellid] != 0) echo "\t\t\t" . GetSpellIcon($value[spellid]) . "<br>\n";
};
?>
		</td>
	</tr>
	<tr>
		<td colspan="2" title="Pet Attack"><button style="width: 100%;" onclick="this.blur();" onMouseOver="this.className='act'" onMouseOut="this.className='inact'">Attack</button></td>
	</tr>
	<tr>
		<td title="Pet Follow Me"><button style="width: 100%;" onclick="this.blur();" onMouseOver="this.className='act'" onMouseOut="this.className='inact'">Follow</button></td>
		<td title="Pet Taunt"><button style="width: 100%;" onclick="this.blur();" onMouseOver="this.className='act'" onMouseOut="this.className='inact'">Taunt</button></td>
	</tr>
	<tr>
		<td title="Pet Guard Here"><button style="width: 100%;" onclick="this.blur();" onMouseOver="this.className='act'" onMouseOut="this.className='inact'">Guard</button></td>
		<td title="Pet Sit Down"><button style="width: 100%;" onclick="this.blur();" onMouseOver="this.className='act'" onMouseOut="this.className='inact'">Sit</button></td>
	</tr>
	<tr>
		<td title="Pet Back Off"><button style="width: 100%;" onclick="this.blur();" onMouseOver="this.className='act'" onMouseOut="this.className='inact'">Back</button></td>
		<td title="Pet Get Lost"><button style="width: 100%;" onclick="this.blur();" onMouseOver="this.className='act'" onMouseOut="this.className='inact'">Go Away</button></td>
	</tr>
</table>

Pet ID: <?php echo $ExtProfile[pet_id]; ?><br>
Current Mana: <?php echo $ExtProfile[pet_mana]; ?><br>
<?php
foreach ($ExtProfile[pet_items] as $key => $value) {
	if ($value != 0) {
		echo "Item " . $key . ": ";
		echo GetItemName($value) . "<br>\n";
	};
};
?>

</body>

</html>